package me.liyiren.jenkinstest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by kino on 18-11-21.
 */
@RestController
public class WebHookController {

    @PostMapping("/webhook")
    public String handleWebHook() {
        return "OK";
    }

    @GetMapping("/test")
    public String test() {
        return "Hello World";
    }
}
